package com.kube.design.decorator;

/**
 * @author q.zhangr
 * @version 1.0.0
 * @date 2020/7/20
 */
public class AbstractDecorator implements Human {


    /**
     * 持有被装饰类的引用
     */
    private Human human;

    /**
     * 构造函数注入被装饰者
     *
     * @param human
     */
    public AbstractDecorator(Human human) {
        this.human = human;
    }

    @Override
    public void run() {

        human.run();
    }
}
